import {CFormGroupProps} from "@/components/CProForm/CFormItem/type";


// @ts-ignore
export const fields: CFormGroupProps<any>[] = (): CFormGroupProps<any>[] => {
  return [
    {
      itemList: [
        {
          name: "tableName",
          label: "表名称",
          width: "sm",
          disabled: true
        },
        {
          name: "databaseName",
          label: "数据库名称",
          width: "sm",
          disabled: true
        },
        {
          name: "comment",
          label: "注释业务名",
          width: "sm",
        }
      ],
    },
    {
      itemList: [
        {
          name: "module",
          label: "模块",
          width: "sm",
          valueEnum: {
            "account": '用户',
            "generate": '生成',
            "admin": '管理',
            "financial": "财务"
          }
        },
        {
          name: "packageName",
          label: "包名",
          width: "sm",
        },
        {
          name: "frontPath",
          label: "前端组件路径",
          width: "sm",
        },
      ]
    },
    {
      itemList: [
        {
          name: "className",
          label: "小写类名",
          width: "sm",
        },
        {
          name: "clazzName",
          label: "大写类名",
          width: "sm",
        },
        {
          name: "funName",
          label: "业务名称",
          width: "sm",
        },
      ]
    },
    {
      itemList: [
        {
          name: "api",
          label: "接口路径",
          width: "sm",
        },
        {
          name: "modal",
          label: "新增是否为modal",
          width: "sm",
        },
        {
          name: "authorize",
          label: "权限标识",
          width: "sm",
        },
      ]
    }
  ]
}
